package com.larry.design.creatation.builder;

/**
 * @author larry
 * @Title: design-frame
 * @Package com.larry.design.creatation.builder
 * @Description: TODO
 * @date 8/31/2110:43 PM
 */
public class IphoneBuilder extends AbstractBuilder {


    public IphoneBuilder() {
        //phone = new Phone();
        phone = Phone.builder().build();
    }

    AbstractBuilder customCpu(String cpu) {
        phone.cpu = cpu;
        return this;
    }

    AbstractBuilder customMem(String mem) {
        phone.mem = mem;
        return this;
    }

    AbstractBuilder customDisk(String disk) {
        phone.disk = disk;
        return this;
    }

    AbstractBuilder   customCamera(String camera) {
        phone.camera = camera;
        return this;
    }
}
